package com.authorization.project.authorization.mapper;

import java.util.List;
import com.authorization.project.authorization.domain.MoudleMicroserviceMapping;

/**
 * 模块-微服务中间Mapper接口
 * 
 * @author 李晓雷
 * @date 2020-04-23
 */
public interface MoudleMicroserviceMappingMapper 
{
    /**
     * 查询模块-微服务中间
     * 
     * @param id 模块-微服务中间ID
     * @return 模块-微服务中间
     */
    public MoudleMicroserviceMapping selectMoudleMicroserviceMappingById(Long id);

    /**
     * 查询模块-微服务中间列表
     * 
     * @param moudleMicroserviceMapping 模块-微服务中间
     * @return 模块-微服务中间集合
     */
    public List<MoudleMicroserviceMapping> selectMoudleMicroserviceMappingList(MoudleMicroserviceMapping moudleMicroserviceMapping);

    /**
     * 新增模块-微服务中间
     * 
     * @param moudleMicroserviceMapping 模块-微服务中间
     * @return 结果
     */
    public int insertMoudleMicroserviceMapping(MoudleMicroserviceMapping moudleMicroserviceMapping);

    /**
     * 修改模块-微服务中间
     * 
     * @param moudleMicroserviceMapping 模块-微服务中间
     * @return 结果
     */
    public int updateMoudleMicroserviceMapping(MoudleMicroserviceMapping moudleMicroserviceMapping);

    /**
     * 删除模块-微服务中间
     * 
     * @param id 模块-微服务中间ID
     * @return 结果
     */
    public int deleteMoudleMicroserviceMappingById(Long id);

    /**
     * 批量删除模块-微服务中间
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteMoudleMicroserviceMappingByIds(Long[] ids);

    void deleteMoudleMicroserviceMappingByModuleId(Long moduleId);

    List<Long> selectMoudleMicroserviceIdsByModuleId(Long moduleId);
}
